package org.buptsse.ui;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

//here i am
public class TestActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);

		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.test);
		Button btn_profile = (Button) this.findViewById(R.id.test_profile);
		btn_profile.setOnClickListener(new OnClickListener() {

		
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, MySettingActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_3 = (Button) this.findViewById(R.id.test_trade_info);
		btn_3.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, TradeInfoActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_5 = (Button) this.findViewById(R.id.test_trade_history);
		btn_5.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, TradeHistoryActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_6 = (Button) this.findViewById(R.id.test_message);
		btn_6.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, MessageActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		
		
		Button btn_7 = (Button) this.findViewById(R.id.test_one_trade);
		btn_7.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, OneTradeActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		
		Button btn_8 = (Button) this.findViewById(R.id.test_register_one);
		btn_8.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, RegisterOneActivity.class);
				TestActivity.this.startActivity(it);
			}
		});

		Button btn_9 = (Button) this.findViewById(R.id.test_register_two);
		btn_9.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, RegisterTwoActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		
		Button btn_10 = (Button) this.findViewById(R.id.test_10);
		btn_10.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, MessageAllActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_11 = (Button) this.findViewById(R.id.test_11);
		btn_11.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, NearBookAllActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_12 = (Button) this.findViewById(R.id.test_12);
		btn_12.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, OneBookActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_13 = (Button) this.findViewById(R.id.test_13);
		btn_13.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, NearBookAllActivitySearch.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_14 = (Button) this.findViewById(R.id.test_14);
		btn_14.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, SearchActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_15 = (Button) this.findViewById(R.id.test_15);
		btn_15.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, SearchResultActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_16 = (Button) this.findViewById(R.id.test_16);
		btn_16.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, PostNewBookActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_17 = (Button) this.findViewById(R.id.test_17);
		btn_17.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, ManageBookActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_18 = (Button) this.findViewById(R.id.test_18);
		btn_18.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, MyAllBooksActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_19 = (Button) this.findViewById(R.id.test_19);
		btn_19.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, MyAllChannelActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_20 = (Button) this.findViewById(R.id.test_20);
		btn_20.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, OneChanelActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_21 = (Button) this.findViewById(R.id.test_21);
		btn_21.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, OneChannelPostActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		Button btn_22 = (Button) this.findViewById(R.id.test_22);
		btn_22.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, SearchChannelActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		
		Button btn_23 = (Button) this.findViewById(R.id.test_23);
		btn_23.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, MainStudyActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
		
		Button btn_24 = (Button) this.findViewById(R.id.test_24);
		btn_24.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent it = new Intent();
				it.setClass(TestActivity.this, DocListActivity.class);
				TestActivity.this.startActivity(it);
			}
		});
	}

}
